package com.meichis.yndms.vm;

import androidx.lifecycle.MutableLiveData;

import com.meichis.yndms.model.InspectTemplate;
import com.meichis.yndms.model.MinStatistical;
import com.meichis.yndms.model.VstFreeQuestion;
import com.meichis.yndms.repository.manager.VSTFreeQuestionnaireManager;

import java.util.List;

public class VSTFreeQuestionnaireVm extends MyViewModel {

    private MutableLiveData<List<InspectTemplate>> questionList;

    public MutableLiveData<List<InspectTemplate>> getQuestionList() {
        if (questionList == null) {
            questionList = new MutableLiveData<>();
        }
        return questionList;
    }

    public void GetQuestion() {
        VSTFreeQuestionnaireManager.getInstance().getQuestionList(getShowDialog(), getQuestionList());
    }


}
